<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>上海工业技术学校</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>

<div id="main">
    <jsp:include page="head.jsp"/>
    <div id="content">
        <div id="contentSub">
            <div id="serverDiv" style="height: 520px;">
                <div id="serverType" style="height: 520px;">
                    <ul>
                        <c:forEach items="${listType}" var="serverType" varStatus="status">
                            <li menuid="${serverType.menuid}" <c:if test="${status.index==0}">class="select"</c:if>>${serverType.menuname}</li>
                        </c:forEach>
                    </ul>
                </div>
                <div id="serverList" style="background: white;padding: 10px 0;height: 500px;">
                    <c:forEach items="${listType}" var="serverType" varStatus="status">
                        <div>
                            <c:forEach items="${serverType.childMenu}" var="menu">
                                <div class="server" menuid="${serverType.menuid}${menu.menuid}" <c:if test="${status.index!=0}">style="display: none;" </c:if>>
                                    <div class="servericon" style="background-color: ${menu.bgcolor};"
                                         onclick="window.open('${menu.menupath}')">
                                        <img src="${basePath}/resources/images/icons/${menu.tb}"
                                             onerror="this.src='${basePath}/resources/images/icons/icons-01.png'">
                                    </div>
                                    <div class="servertitle" title="${menu.menuname}" style="color:#FFFFFF;"> <!-- 服务ID -->
                                        <a href="${menu.menupath}" target="_blank">${menu.menuname}</a>
                                    </div>
                                </div>
                            </c:forEach>
                            <div class="server serverAdd" menuid="${serverType.menuid}"  <c:if test="${status.index!=0}">style="display: none;" </c:if>
                                 onclick="window.open('${basePath}/s/uc/se/i/${serverid}${serverType.menuid}')">
                                <div class="servericon">
                                    <img src="${basePath}/resources/images/icons/addMore.png">
                                </div>
                                <div class="servertitle">
                            <span class="addSpan">
                                订阅
                            </span>
                                </div>
                            </div>
                        </div>
                    </c:forEach>
                </div>
            </div>
        </div>
    </div>
    <jsp:include page="foot.jsp"/>
</div>
</body>
</html>
